<include file="Public:header" />

<div class="table-tit">推广员列表 <a style="font-size: 14px;" href="{:U('Dash/exportXls')}" class="pull-right">导出Excel</a></div>
<table class="table table-bgfont">
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>账号</th>
        <th>开户银行</th>
        <th>银行账号</th>
        <th>账户类型</th>
        <th>上级主管</th>
        <th>状态</th>
        <th>加入时间</th>
        <th>管理</th>
    </tr>

    <volist name="data.data" id="v">
        <tr>
            <td>{$v.ssa_id}</td>
            <td>{$v.ssa_name}</td>
            <td>{$v.ssa_phone}</td>
            <td>{$v.ssa_banktrans}</td>
            <td>{$v.ssa_banknumber}</td>
            <td>{$v.ssa_type}-{$v.ssa_type|getDisName=$v['ssa_type'],###}</td>
            <td>{$v.ssa_agid|getAgentName=$v['ssa_agid'],###}</td>
            <td>
                <if condition="$v.ssa_status eq 1">
                    <button type="button" class="btn btn-success btn-xs">启用</button>
                </if>
                <if condition="$v.ssa_status eq 2">
                    <button type="button" class="btn btn-danger btn-xs">暂停</button>
                </if>
                <if condition="$v.ssa_status eq 8">
                    <button type="button" class="btn btn-primary btn-xs">审核</button>
                </if>
            </td>
            <td>{$v.ssa_time|date='Y-m-d H:i:s',###}</td>
            <td>
                <a href="{:U('Dash/promanover','soa='.$v['ssa_id'])}">
                    <button type="button" class="btn btn-info btn-xs">浏览</button>
                </a>
                <a href="{:U('Dash/promanedit','soa='.$v['ssa_id'])}">
                    <button type="button" class="btn btn-xs btn-primary">编辑</button>
                </a>
                <a href="{:U('Dash/promanover', 'soa='.$v['ssa_id'])}">
                    <button type="button" class="btn btn-xs btn-danger">删除</button>
                </a>
            </td>
        </tr>
    </volist>

    <tr>
        <td colspan="10">{$data.page}</td>
    </tr>


</table>

<include file="Public:footer" />
